/**
 * 新增同行
 */
export function addPeer(data) {
	return uni.$u.http.post('/seconded/job', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 编辑同行
 */
export function editPeer(data) {
	return uni.$u.http.put('/seconded/job', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 同行列表
 */
export function peerList(params) {
	return uni.$u.http.get('seconded/job/list?'+ params);
}

/**
 * 同行详情
 */
export function peerDetail(params) {
	return uni.$u.http.get('/seconded/job/'+ params);
}

/**
 * 删除同行
 */
export function deletePeer(params) {
	return uni.$u.http.delete('/seconded/job/'+ params);
}


/**
 * 借调列表
 */
export function secondedList(params) {
	return uni.$u.http.get('seconded/seconded/list?'+ params);
}


// 借入关联订单列表
export function orderList(params) {
  return uni.$u.http.get('order/orderBasic/list?'+params);
}

/**
 * 新增借调
 */
export function addSeconded(data) {
	return uni.$u.http.post('/seconded/seconded', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 编辑借调
 */
export function editSeconded(data) {
	return uni.$u.http.put('/seconded/seconded', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 借调详情
 */
export function secondedDetail(params) {
	return uni.$u.http.get('/seconded/seconded/'+ params);
}

/**
 * 删除借调
 */
export function deleteSecondedOrder(params) {
	return uni.$u.http.delete('/seconded/seconded/'+ params);
}

// 借出关联车辆列表
export function carList(params) {
  return uni.$u.http.get('car/basic/list?'+params);
}

/**
 * 结束借调
 */
export function endSeconded(data) {
	return uni.$u.http.put('/seconded/seconded/endEdit', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}